st = input('Input a String:')
i = 0
#while是不确定循环个数的循环
while i < len(st):
    if 'a' <= st[i] <= 'z':
        print(st[i].upper(), end='')
    else:
        print(st[i], end='')
    i += 1

st=input('Input a String:')
for s in st:
    if 'a' <=s<='z':
        print(s.upper(),end='')
    else:
        print(s,end='')